// import * as school from "./school.mjs"; //万能导入方式
import { name, slogan, getTel } from "./student.mjs"; //命名导入
console.log(name);
console.log(slogan);
console.log(getTel());

import xyz, { name, slogan } from "./school.mjs";

const btn = document.getElementById("btn");
//动态导入
btn.onclick = async () => {
  const result = await import("./student.mjs");
  console.log(result);
};
